<!--
 * @Description: 
 * @Author: mxy
 * @Date: 2022-12-03 17:42:02
 * @LastEditors: mxy
 * @LastEditTime: 2022-12-03 20:25:54
-->
<template>
  <div>
    <h2>left组件</h2>
    <p v-aa>{{ uname }}</p>
  </div>
</template>

<script>
export default {
  props: ["uname"],
  data() {
    return {
      age: 20,
    };
  },
  directives: {
    aa: {
      update(el) {
        console.log(el.innerHTML);
      },
      componentUpdated(el) {
        console.log(el.innerHTML);
      },
    },
  },
};
</script>

<style scoped>
div {
  min-height: 200px;
  background-color: skyblue;
  margin-top: 10px;
}
</style>